<template>
  <div><IndexView /></div>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue'
import IndexView from '@/views/IndexView.vue'
import { getFileTables, getToken } from './api/IndexViewApi'

onMounted(async () => {
  // 获取token
  const dataToken = await getToken()

  const token = dataToken['jwt']

  localStorage.setItem('token', token)

  // 获取数据
  const dataFileTable = await getFileTables()

  console.log(dataFileTable)
})
</script>

<style lang="scss" scoped></style>
